package com.zhkj.txg.module.mine.entity

import com.google.gson.annotations.SerializedName
import com.zhkj.lib.http.BaseResponse

data class CollectionListResponse(
    val data: MutableList<CollectionEntity> = mutableListOf()
) : BaseResponse() {
    var hasMore = true
    var loadMore = false
}

data class CollectionEntity(
    val id: Long,
    val goods: CollectionGoodsEntity? = null,
    val type: Int, //商品类型 0普通商品 1拼团商品  根据此值跳转不同详情
    val shops: CollectionShopEntity? = null
)

data class CollectionGoodsEntity(
    val id: Long,
    @SerializedName("shop_id")
    val shopId: Long,
    @SerializedName("goods_name")
    val goodsName: String = "",
    @SerializedName("market_price")
    val marketPrice: String = "",
    val price: String = "",
    val image: String = "",
    @SerializedName("is_new")
    val isNew: String = "",
    @SerializedName("share_earn")
    val shareEarn: String = "",
    @SerializedName("share_content")
    val shareContent: String = "",
    @SerializedName("share_images")
    val shareImages: MutableList<String> = mutableListOf(),
    @SerializedName("shop_name")
    val shopName: String = "",
    @SerializedName("share_switch")
    val shareSwitch: Int? = null,
    @SerializedName("share_url")
    val shareUrl: String? = null
) {
    var selected = false
}

data class CollectionShopEntity(
    val id: Long,
    @SerializedName("shop_name")
    val shopName: String = "",
    @SerializedName("shop_img")
    val shopImg: String = "",
    @SerializedName("goods_count")
    val goodsCount: Int = 0,
    @SerializedName("collect_count")
    val collectCount: Int = 0,
    val goods: MutableList<CollectionShopGoodsEntity> = mutableListOf(),
    @SerializedName("week_new")
    val weekNew: Boolean = false
) {
    var selected = false
}

data class CollectionShopGoodsEntity(
    val id: Long,
    @SerializedName("shop_id")
    val shopId: Long,
    val image: String = ""
)